package auction.chapter08;

import java.util.Date;

/**
 *
      create trigger wei1
      before insert on item_trigger_update
      for each row set new.created_at=now();
      
      create trigger wei2
      before update on item_trigger_update
      for each row set new.created_at=now();
 * 
 * @author wei
 *
 */
public class ItemTriggerUpdate{
	private Long id;
	private String title;
	private Date created;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
}